function t_animate__getAttrByRes($el,attr){var width=$(window).width(),attrValue;return width>=1200?attrValue=$el.attr("data-animate-"+attr):"y"==$el.attr("data-animate-mobile")?width>=960?((attrValue=$el.attr("data-animate-"+attr+"-res-960"))||(attrValue=$el.attr("data-animate-"+attr)),attrValue):width>=640?((attrValue=$el.attr("data-animate-"+attr+"-res-640"))||(attrValue=$el.attr("data-animate-"+attr+"-res-960")),attrValue||(attrValue=$el.attr("data-animate-"+attr)),attrValue):width>=480?((attrValue=$el.attr("data-animate-"+attr+"-res-480"))||(attrValue=$el.attr("data-animate-"+attr+"-res-640")),attrValue||(attrValue=$el.attr("data-animate-"+attr+"-res-960")),attrValue||(attrValue=$el.attr("data-animate-"+attr)),attrValue):width>=320?((attrValue=$el.attr("data-animate-"+attr+"-res-320"))||(attrValue=$el.attr("data-animate-"+attr+"-res-480")),attrValue||(attrValue=$el.attr("data-animate-"+attr+"-res-640")),attrValue||(attrValue=$el.attr("data-animate-"+attr+"-res-960")),attrValue||(attrValue=$el.attr("data-animate-"+attr)),attrValue):void 0:void $el.css("transition","none")}function t_animate__init(){if(1==window.isSearchBot||"yes"==$(".t-records").attr("data-blocks-animationoff")||t_animate__checkIE()||"edit"==$(".t-records").attr("data-tilda-mode"))$(".t-animate").removeClass("t-animate");else{t_animate__wrapTextWithOpacity(),t_animate__addNoHoverClassToBtns(),$("[data-animate-style=fadeinleft]:not(.t396__elem)").length>0&&$(".t-records#allrecords").css("overflow-x","hidden");var animElemsNumber=$(".t-animate[data-animate-style='animatednumber']");$(window).width()>=1200&&t_animate__parseNumberText(animElemsNumber),setTimeout((function(){t_animate__startAnimation()}),1500)}}function t_animate__checkMobile(elems){return elems.filter((function(){return"y"===$(this).attr("data-animate-mobile")||($(this).removeClass("t-animate"),!1)})),elems}function t_animate__startAnimation(){var animGroupsBlocks=$(".r").has(".t-animate[data-animate-group=yes]"),animChainsBlocks=$(".r").has(".t-animate[data-animate-chain=yes]"),animElems=$(".t-animate:not([data-animate-group=yes]):not([data-animate-chain=yes])");function getOffsets(){t_animate__getGroupsOffsets(animGroupsBlocks),t_animate__getChainOffsets(animChainsBlocks),t_animate__getElemsOffsets(animElems)}$(window).width()<1200&&(animGroupsBlocks=t_animate__checkMobile(animGroupsBlocks),animChainsBlocks=t_animate__checkMobile(animChainsBlocks),animElems=t_animate__checkMobile(animElems)),(void 0!==animGroupsBlocks&&0!=animGroupsBlocks.length||void 0!==animElems&&0!=animElems.length||void 0!==animChainsBlocks&&0!=animChainsBlocks.length)&&(t_animate__setAnimationState(animGroupsBlocks,animChainsBlocks,animElems),animGroupsBlocks=animGroupsBlocks.filter(".r:has(.t-animate_wait)"),animElems=animElems.filter(".t-animate_wait"),animChainsBlocks=animChainsBlocks.filter(".r:has(.t-animate_wait)"),getOffsets(),$(window).bind("resize",t_throttle(getOffsets,200)),setInterval(getOffsets,5e3),$(window).bind("scroll",t_throttle((function(){t_animate__animateOnScroll(animGroupsBlocks,animChainsBlocks,animElems)}),200)),$(".r").find(".t-popup").bind("scroll",t_throttle((function(){var viewBottom=$(window).scrollTop()+$(window).height(),popupAnimChainsBlocks=$(this).has(".t-animate[data-animate-chain=yes]");0!==popupAnimChainsBlocks.length&&(t_animate__setAnimationStateChains(popupAnimChainsBlocks),t_animate__getChainOffsets(popupAnimChainsBlocks=popupAnimChainsBlocks.filter(".r:has(.t-animate_wait)")),t_animate__animateChainsBlocks(popupAnimChainsBlocks,viewBottom))}),200)))}function t_animate__animateOnScroll(animGroupsBlocks,animChainsBlocks,animElems){if(0!=animGroupsBlocks.length||0!=animChainsBlocks.length||0!=animElems.length){var viewTop=$(window).scrollTop(),viewBottom=viewTop+$(window).height();if($("body").is(":animated")){for(var s=0;sviewBottom||0==curBlock.find(".t-animate_wait").length||(t_animate__animateChainItemsOnScroll(animChainsBlocks,j,viewBottom),0==animChainsBlocks[j].itemsOffsets.length&&(animChainsBlocks.splice(j,1),j--),t_animate__checkSectionButtonAnimation__outOfTurn(curBlock))}}function t_animate__animateChainItemsOnScroll(animChainsBlocks,j,viewBottom){var curBlock=$(animChainsBlocks[j]),waitingChainItems=curBlock.find(".t-animate_wait[data-animate-chain=yes]"),itemOrder=0,rowOrder=0,rowOffset=animChainsBlocks[j].itemsOffsets[0],chainDelay=.16,delayFromPrevScroll=t_animate__getDelayFromPreviousScrollEvent(curBlock,waitingChainItems,.16),sectionHeadDelay=t_animate__getSectionHeadDealy(curBlock);$(waitingChainItems[0]).addClass("t-animate__chain_first-in-row");for(var s=0;s0){var numberDotOrComma=text.replace(/[^\d., ]+/g,"").match(/\d+\.\d+|\d+,\d+/g),number=removeNumberSpace=text.replace(/
/g," ").replace(/[^\d., ]+/g,"").replace(/ (\.|,)/g,"").replace(/(\d)(?=\d) /g,"$1").trim();if(-1===text.indexOf(number)&&(nremoveNumberSpace=numbe=number.split(" ")[0]),""!==number){var itemSplitArr;if($this.attr("data-animate-number-count",text),null!==numberDotOrComma)if(-1!==number.indexOf(",")&&(itemSplitArr=number.split(",")),-1!==number.indexOf(".")&&(itemSplitArr=number.split(".")),-1!==number.indexOf(",")||-1!==number.indexOf(".")){var lengthToFix=itemSplitArr[1].length;number=(number=+itemSplitArr.join(".")).toFixed(lengthToFix)}t_animate__changeNumberOnZero($this,text.replace(removeNumberSpace,"num")),$this.find("span:not(.t-animate__number)").each((function(){$(this).attr("style",style)}))}}}))}function t_animate__changeNumberOnZero(el,removeNumberSpace){var textWithoutNumber=removeNumberSpace.replace(/num/g,'0');el.html(textWithoutNumber)}function t_animate__animateNumbers(curElem){curElem.each((function(){var $this=$(this),text=$this.attr("data-animate-number-count"),style=[];if($this.find("span:not(.t-animate__number):first").each((function(){style=$(this).attr("style")})),text){var numberDotOrComma=text.match(/\d+\.\d+|\d+,\d+/g),numberWithSpace=text.match(/\d+/g),removeNumberSpace,numberWithoutLetter=text.replace(/(\d)(?= \d) /g,"$1").split(" "),number=[];numberWithoutLetter.forEach((function(item){isNaN(parseInt(item.replace(/[^\d., ]+/g,""),10))||number.push(item.replace(/[^\d., ]+/g,""))}));var decimalLength=0,isFloat=!1,isComma=!1;$this.removeAttr("data-animate-number-count"),null!==numberDotOrComma&&(isComma=-1!=numberDotOrComma[0].indexOf(",")),number.forEach((function(item,i){var itemSplitArr;null!==numberDotOrComma&&(-1!==item.indexOf(",")&&(itemSplitArr=item.split(",")),-1!==item.indexOf(".")&&(itemSplitArr=item.split(".")),-1===item.indexOf(",")&&-1===item.indexOf(".")||(decimalLength=itemSplitArr[1].length,number[i]=+itemSplitArr.join("."),isFloat=!0))}));var numberWrapper=[];$this.find(".t-animate__number").each((function(){numberWrapper.push($(this).text())})),number.forEach((function(item,i){void 0!==numberWrapper[i]&&$({animateCounter:numberWrapper[i]}).animate({animateCounter:item},{duration:1500,easing:"swing",step:function(isFloat){var animateNumberSpan=$this.find(".t-animate__number")[i],round=Math.pow(10,decimalLength),animationStep;animationStep=isFloat?(Math.round(this.animateCounter*round)/round).toFixed(decimalLength)+"":Math.floor(this.animateCounter)+"",numberWithSpace.length>1&&(animationStep=animationStep.replace(/(\d)(?=(\d{3})+([^\d]|$))/g,"$1 ")),isComma&&(animationStep=animationStep.replace(/\./g,","),item=(item+"").replace(/\./g,",")),$(animateNumberSpan).text(animationStep)},complete:function(){$this.html(text),$this.find("span").each((function(){$(this).attr("style",style)}))}})}))}}))}function t_animate__setAnimationState(animGroupsBlocks,animChainsBlocks,animElems){var viewTop=$(window).scrollTop(),viewBottom=viewTop+$(window).height();animGroupsBlocks.each((function(){var curBlock=$(this),curBlockAnimElems=curBlock.find(".t-animate:not([data-animate-chain=yes])"),curBlockOffset=curBlockAnimElems.first().offset().top,sectionHeadDelay;if(t_animate__removeAnimFromHiddenSlides(curBlock),t_animate__assignGroupDelay(curBlock,t_animate__assignSectionDelay(curBlock)),curBlockAnimElems.hasClass("t-animate_no-hover")&&1===curBlockAnimElems.parents(".t400__off").length&&curBlockAnimElems.removeClass("t-animate_no-hover"),curBlockOffset<=viewTop-100)return t_animate__saveSectionHeaderStartTime(curBlock),curBlockAnimElems.removeClass("t-animate t-animate_no-hover"),curBlockAnimElems.css("transition-delay",""),!0;curBlockOffsetviewTop-100&&(t_animate__makeSectionButtonWait(curBlock),t_animate__removeNoHoverClassFromBtns(curBlockAnimElems=curBlockAnimElems.filter(".t-animate:not(.t-animate__btn-wait-chain)")),curBlockAnimElems.addClass("t-animate_started")),curBlockOffset>=viewBottom&&curBlockAnimElems.addClass("t-animate_wait")})),animChainsBlocks.each((function(){var curBlock=$(this);t_animate__assignChainDelay(curBlock,viewBottom,viewTop),t_animate__checkSectionButtonAnimation__outOfTurn(curBlock)})),animElems.each((function(){var curElem=$(this),curElemOffsetTop=curElem.offset().top;if(curElemOffsetTop=curElemTrigger&&curElem.addClass("t-animate_wait")})),$(window).bind("resize",t_throttle(t_animate__removeInlineAnimStyles,200))}function t_animate__setAnimationStateChains(animChainsBlocks){var viewTop=$(window).scrollTop(),viewBottom=viewTop+$(window).height();animChainsBlocks.each((function(){var curBlock=$(this);t_animate__assignChainDelay(curBlock,viewBottom,viewTop),t_animate__checkSectionButtonAnimation__outOfTurn(curBlock)}))}function t_animate__assignSectionDelay(curBlock){var sectionHeadDelay=0,sectionTitle=curBlock.find(".t-section__title.t-animate"),sectionDescr=curBlock.find(".t-section__descr.t-animate");return sectionTitle.length&&(sectionHeadDelay=.16),sectionDescr.length&&(sectionDescr.css("transition-delay",sectionHeadDelay+"s"),sectionHeadDelay+=.16),sectionHeadDelay}function t_animate__assignGroupDelay(curBlock,sectionHeadDelay){var animDelay=0;if(curBlock.find("[data-animate-order]").length)t_animate__assignOrderedElemsDelay(curBlock,sectionHeadDelay);else{var elemImg=curBlock.find(".t-img.t-animate"),elemSubtitle=curBlock.find(".t-uptitle.t-animate"),elemTitle=curBlock.find(".t-title.t-animate:not(.t-section__title)"),elemDescr=curBlock.find(".t-descr.t-animate:not(.t-section__descr)"),elemBtn=curBlock.find(".t-btn.t-animate:not(.t-section__bottomwrapper .t-btn)"),elemTimer=curBlock.find(".t-timer.t-animate"),elemForm=curBlock.find("form.t-animate");0!=elemImg.length&&(animDelay=.5),0!=elemTitle.length&&elemTitle.css("transition-delay",animDelay+"s"),0!=elemTitle.length&&(animDelay+=.3),0!=elemDescr.length&&elemDescr.css("transition-delay",animDelay+"s"),0!=elemDescr.length&&(animDelay+=.3),0!=elemSubtitle.length&&elemSubtitle.css("transition-delay",animDelay+"s"),0!=elemSubtitle.length&&(animDelay+=.3),0==elemSubtitle.length&&0==elemTitle.length&&0==elemDescr.length||(animDelay+=.2),0!=elemTimer.length&&elemTimer.css("transition-delay",animDelay+"s"),0!=elemTimer.length&&(animDelay+=.5),0!=elemBtn.length&&$(elemBtn.get(0)).css("transition-delay",animDelay+"s"),2==elemBtn.length&&(animDelay+=.4),2==elemBtn.length&&$(elemBtn.get(1)).css("transition-delay",animDelay+"s"),0!=elemForm.length&&elemForm.css("transition-delay",animDelay+"s")}}function t_animate__assignOrderedElemsDelay(curBlock,sectionHeadDelay){var animDelay=0;void 0!==sectionHeadDelay&§ionHeadDelay&&(animDelay=sectionHeadDelay);var elem1=curBlock.find(".t-animate[data-animate-order=1]"),elem2=curBlock.find(".t-animate[data-animate-order=2]"),elem3=curBlock.find(".t-animate[data-animate-order=3]"),elem4=curBlock.find(".t-animate[data-animate-order=4]"),elem5=curBlock.find(".t-animate[data-animate-order=5]"),elem6=curBlock.find(".t-animate[data-animate-order=6]"),elem7=curBlock.find(".t-animate[data-animate-order=7]"),elem8=curBlock.find(".t-animate[data-animate-order=8]"),elem9=curBlock.find(".t-animate[data-animate-order=9]");elem1.length&&elem1.css("transition-delay",animDelay+"s"),elem1.length&&elem2.length&&(animDelay+=1*t_animate__getAttrByRes(elem2,"delay"),elem2.css("transition-delay",animDelay+"s")),(elem1.length||elem2.length)&&elem3.length&&(animDelay+=1*t_animate__getAttrByRes(elem3,"delay"),elem3.css("transition-delay",animDelay+"s")),(elem1.length||elem2.length||elem3.length)&&elem4.length&&(animDelay+=1*t_animate__getAttrByRes(elem4,"delay"),elem4.css("transition-delay",animDelay+"s")),(elem1.length||elem2.length||elem3.length||elem4.length)&&elem5.length&&(animDelay+=1*t_animate__getAttrByRes(elem5,"delay"),elem5.css("transition-delay",animDelay+"s")),(elem1.length||elem2.length||elem3.length||elem4.length||elem5.length)&&elem6.length&&(animDelay+=1*t_animate__getAttrByRes(elem6,"delay"),elem6.css("transition-delay",animDelay+"s")),(elem1.length||elem2.length||elem3.length||elem4.length||elem5.length||elem6.length)&&elem7.length&&(animDelay+=1*t_animate__getAttrByRes(elem7,"delay"),elem7.css("transition-delay",animDelay+"s")),(elem1.length||elem2.length||elem3.length||elem4.length||elem5.length||elem6.length||elem7.length)&&elem8.length&&(animDelay+=1*t_animate__getAttrByRes(elem8,"delay"),elem8.css("transition-delay",animDelay+"s")),(elem1.length||elem2.length||elem3.length||elem4.length||elem5.length||elem6.length||elem7.length||elem8.length)&&elem9.length&&(animDelay+=1*t_animate__getAttrByRes(elem9,"delay"),elem9.css("transition-delay",animDelay+"s"))}function t_animate__assignChainDelay(curBlock,viewBottom,viewTop){var chain=curBlock.find(".t-animate[data-animate-chain=yes]"),itemOrder=0;if(0!=chain.length){var rowOffset=$(chain[0]).offset().top;$(chain[0]).addClass("t-animate__chain_first-in-row");var sectionHeadDelay=t_animate__getCurBlockSectionHeadDelay(curBlock);chain.each((function(){var curItem=$(this),curItemOffset=curItem.offset().top;if(curItemOffset0&&(animGroupsBlocks[b].curTopOffset=$(animGroupsBlocks[b].querySelector(".t-animate")).offset().top)}function t_animate__getChainOffsets(animChainsBlocks){for(var i=0;i0&&(animChainsBlocks[i].itemsOffsets[j]=$(curchain[j]).offset().top)}}function t_animate__getElemsOffsets(animElems){for(var b=0;b=0){var opacity=$(el).css("opacity");void 0!==opacity&&opacity>0&&($(el).css("opacity",""),$(el).wrapInner('
'))}}))}function t_animate__checkIE(){var sAgent=window.navigator.userAgent,Idx=sAgent.indexOf("MSIE"),ieVersion="",oldIE=!1;return Idx>0&&(8!=(ieVersion=parseInt(sAgent.substring(Idx+5,sAgent.indexOf(".",Idx))))&&9!=ieVersion||(oldIE=!0)),oldIE}$(document).ready((function(){t_animate__init()}));